package ipc;

public class runInfo{
	public String type;
	public String instname;
	public String domain;
	public int degree;
	
	public String toInsert(int runid){
		StringBuffer sb = new StringBuffer();
		sb.append("INSERT INTO RUNINFO VALUES (");
		sb.append(runid);
		sb.append(", '");
		sb.append(type);
		sb.append("', '");
		sb.append(instname);
		sb.append("', ");
		sb.append(degree);
		sb.append(", '");
		sb.append(domain);
		sb.append("')");
		
		return sb.toString();
	}

	public runInfo(String type, String instname, int degree, String domain) {
		super();
		this.type = type;
		this.instname = instname;
		this.degree = degree;
		this.domain = domain;
	}

	@Override
	public String toString() {
		return "runInfo [type=" + this.type + ", instname=" + this.instname
				+ ", domain=" + this.domain + ", degree=" + this.degree + "]";
	}

}

